/*
 *  4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 96
 *
 *  NOTE: Table 4-2, Configurable System Variables, p. 96
 */

static long sc_max_values[] = {
	4096,	//_SC_ARG_MAX                0
	64,	// _SC_CHILD_MAX             1
	100,	// _SC_CLK_TCK               2
	16,	// _SC_NGROUPS_MAX           3
	32,	// _SC_OPEN_MAX              4
	/* no _SC_STREAM_MAX */
	1,	// _SC_JOB_CONTROL           5
	1,	// _SC_SAVED_IDS             6
	198808,	// _SC_VERSION               7
	-1,	// _SC_PAGESIZE              8
	/* CYGWIN-specific values .. do not touch */
	-1,	// _SC_NPROCESSORS_CONF      9
	-1,	// _SC_NPROCESSORS_ONLN      10
	-1,	// _SC_PHYS_PAGES            11
	-1,	// _SC_AVPHYS_PAGES          12
	/* end of CYGWIN-specific values */
	-1,	// _SC_MQ_OPEN_MAX           13
	-1,	//_SC_MQ_PRIO_MAX            14
	-1,	//_SC_RTSIG_MAX              15
	-1,	//_SC_SEM_NSEMS_MAX          16
	-1,	//_SC_SEM_VALUE_MAX          17
	-1,	//_SC_SIGQUEUE_MAX           18
	-1,	//_SC_TIMER_MAX              19
	-1,	//_SC_TZNAME_MAX             20

	-1,	//_SC_ASYNCHRONOUS_IO        21
	-1,	//_SC_FSYNC                  22
	-1,	//_SC_MAPPED_FILES           23
	-1,	//_SC_MEMLOCK                24
	-1,	//_SC_MEMLOCK_RANGE          25
	-1,	//_SC_MEMORY_PROTECTION      26
	-1,	//_SC_MESSAGE_PASSING        27
	-1,	//_SC_PRIORITIZED_IO         28
	-1,	//_SC_REALTIME_SIGNALS       29
	-1,	//_SC_SEMAPHORES             30
	-1,	//_SC_SHARED_MEMORY_OBJECTS  31
	-1,	//_SC_SYNCHRONIZED_IO        32
	-1,	//_SC_TIMERS                 33
	-1,	//_SC_AIO_LISTIO_MAX         34
	-1,	//_SC_AIO_MAX                35
	-1,	//_SC_AIO_PRIO_DELTA_MAX     36
	-1,	//_SC_DELAYTIMER_MAX         37

/*
 *  P1003.1c/D10, p. 52 adds the following.
 */

	-1,	//_SC_THREAD_KEYS_MAX              38
	-1,	//_SC_THREAD_STACK_MIN             39
	-1,	//_SC_THREAD_THREADS_MAX           40
	-1,	//_SC_TTY_NAME_MAX                 41

	-1,	//_SC_THREADS                      42
	-1,	//_SC_THREAD_ATTR_STACKADDR        43
	-1,	//_SC_THREAD_ATTR_STACKSIZE        44
	-1,	//_SC_THREAD_PRIORITY_SCHEDULING   45
	-1,	//_SC_THREAD_PRIO_INHERIT          46
/* _SC_THREAD_PRIO_PROTECT was _SC_THREAD_PRIO_CEILING in early drafts */
	-1,	//_SC_THREAD_PRIO_PROTECT          47
		//_SC_THREAD_PRIO_CEILING          _SC_THREAD_PRIO_PROTECT
	-1,	//_SC_THREAD_PROCESS_SHARED        48
	-1,	//_SC_THREAD_SAFE_FUNCTIONS        49
	-1,	//_SC_GETGR_R_SIZE_MAX             50
	-1,	//_SC_GETPW_R_SIZE_MAX             51
	-1,	//_SC_LOGIN_NAME_MAX               52
	-1,	//_SC_THREAD_DESTRUCTOR_ITERATIONS 53
};

static long pc_max_values[] = {
	100,	//_PC_LINK_MAX	        0
	255,	//_PC_MAX_CANON	        1
	255,	//_PC_MAX_INPUT	        2
	30,	//_PC_NAME_MAX	        3
	1023,	//_PC_PATH_MAX	        4
	4096,	//_PC_PIPE_BUF	        5
	1,	//_PC_CHOWN_RESTRICTED  6
	1,	//_PC_NO_TRUNC	        7
	0,	//_PC_VDISABLE	        8
	-1,	//_PC_ASYNC_IO          9
	-1,	//_PC_PRIO_IO           10
	-1,	//_PC_SYNC_IO           11
	-1,	//_PC_FILESIZEBITS      12
	-1,	//_PC_2_SYMLINKS        13
	1000,	//_PC_SYMLINK_MAX       14
};
